import request from '@/utils/request'

// 查询样本回收站 列表
export function listSampleTrash(query) {
  return request({
    url: '/biobank/sampleTrash/list',
    method: 'get',
    params: query
  })
}

// 查询样本回收站 详细
export function getSampleTrash(sampTrashId) {
  return request({
    url: '/biobank/sampleTrash/' + sampTrashId,
    method: 'get'
  })
}

// 新增样本回收站
export function addSampleTrash(data) {
  return request({
    url: '/biobank/sampleTrash',
    method: 'post',
    data: data
  })
}

// 修改样本回收站
export function updateSampleTrash(data) {
  return request({
    url: '/biobank/sampleTrash',
    method: 'put',
    data: data
  })
}

// 删除样本回收站
export function delSampleTrash(sampTrashId) {
  return request({
    url: '/biobank/sampleTrash/' + sampTrashId,
    method: 'delete'
  })
}

// 样本还原
export function reduceSampleTrash(data) {
  return request({
    url: '/biobank/sampleTrash/reduce',
    method: 'post',
    data: data
  })
}
